package com.scut.edu.wanyou.home;

import java.util.ArrayList;

import org.jivesoftware.smack.RosterEntry;

import com.scut.edu.wanyou.home.talk.ChatOne;

import android.graphics.Bitmap;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * 保存一个好友的所有信息
 */
public class ChildHolder {
	public int msgNumUnRead;
	public String title;
    public String Id;
	public String stuts;
	public Bitmap userHead;
	public LinearLayout ll;
	public ArrayList<ChatMsgEntity> msgs;
	public RosterEntry rosterEntry;
	public ChatOne chat;
	public ChildHolder(RosterEntry entry)
	{
		msgs = new ArrayList<ChatMsgEntity>();
        rosterEntry = entry;
        chat = new ChatOne(entry.getUser());
        title = rosterEntry.getUser();
        Id = title.split("@")[0];
        msgNumUnRead = 0;
	}
	
}
